package zhongbo.java.air.airingestion.listener;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Component;
import zhongbo.java.air.airingestion.config.RedisListenerConfig;


/*
   通过频道log_cannel广播发送消息
 */
@Component
public class RedisLogChanelPublisher {
    @Autowired
    private StringRedisTemplate redisTemplate;


    public void Pushlish(String processedJson) {
        redisTemplate.convertAndSend(RedisListenerConfig.MY_FLIGHT_PATH_CHANEL, processedJson);
    }
}
